package keni.html.android.framework.offlineContentProvider.database;


import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;

public class DatatableMetadata {
	
	String tableName;
	String primaryKey;
	Map<String, String> foreignKeyAndParentTable= new Hashtable<String, String>();
	List<String> parentTables=new ArrayList<String>();
	
	public List<String> getParentTabls() {
		if(parentTables.size()>0)
		{
			return parentTables;
		}
		for (Map.Entry<String, String> tableEntry : foreignKeyAndParentTable.entrySet()) {
			parentTables.add(tableEntry.getValue());
		} 
		return parentTables;
	}
	
	
	

}
